let AuthSetting = {
  userInfo: 'scope.userInfo',
  userLocation: 'scope.userLocation',
  address: 'scope.address',
  invoiceTitle: 'scope.invoiceTitle',
  invoice: 'scope.invoice',
  werun: 'scope.werun',
  record: 'scope.record',
  writePhotosAlbum: 'scope.writePhotosAlbum',
  camera: 'scope.camera',
}

let themeSetting = {
  "theme-1": '数学',
  "theme-2": '英语',
  "theme-3": '政治',
  "theme-4": '专业课',
}

let yearOptions = function() {
  return [
    {
      value: 2018,
      label: '2018年',
    },
    {
      value: 2019,
      label: '2019年',
    },
    {
      value: 2020,
      label: '2020年',
    },
    {
      value: 2021,
      label: '2021年',
    },
    {
      value: 2022,
      label: '2022年',
    },
    {
      value: 2023,
      label: '2023年',
    },
    {
      value: 2024,
      label: '2024年',
    },
  ]
}

let booleanOptions = function() {
  return [
    {
      value: 1,
      label: '是',
    },
    {
      value: 0,
      label: '否',
    },
  ]
}

let selectedOptions = function() {
  // (0, '未录取'), (1, '已录取'), (2, '已调剂')
  return [
    {
      label: '未录取',
      value: 0,
    },
    {
      label: '已录取',
      value: 1,
    },
    {
      label: '已调剂',
      value: 2,
    },
  ]
}

let fullSexOptions = function() {
  return [
    {
      value: 0,
      label: '男',
    },
    {
      value: 1,
      label: '女',
    },
    {
      value: 2,
      label: '未知',
    },
  ]
}

let sexOptions = function() {
  return [
    {
      value: 0,
      label: '男',
    },
    {
      value: 1,
      label: '女',
    },
  ]
}

let englishLevelOptions = function() {
  return [
    {
      value: 0,
      label: '四级'
    },
    {
      value: 1,
      label: '六级'
    },
    {
      value: 2,
      label: '无'
    },
  ]
}

// 考生类别
let categoryOptions = function() {
  return [
    {
      value: 0,
      label: '应届生',
    },
    {
      value: 1,
      label: '往届生',
    },
  ]
}

let degreeOptions = function() {
  return [
    {
      value: 0,
      label: '学硕',
    },
    {
      value: 1,
      label: '专硕',
    },
    {
      value: 2,
      label: '不限',
    },
  ]
}

let learningWayOptions = function() {
  return  [
    {
      value: 0,
      label: '全日制',
    },
    {
      value: 1,
      label: '非全日制',
    },
  ]
}

// 0:985 1:211 2:普通院校
let intentionLevelOptions = function() {
  return  [
    {
      value: 0,
      label: '985',
    },
    {
      value: 1,
      label: '211',
    },
    {
      value: 2,
      label: '普通院校',
    },
    {
      value: 3,
      label: '科研院校',
    },
  ]
}

let registerDegreeOptions = function() {
  return [
    {
      value: 0,
      label: '全日制统招本科',
    },
    {
      value: 1,
      label: '自考本科',
    },
    {
      value: 2,
      label: '成人教育本科',
    },
    {
      value: 3,
      label: '网络教育本科',
    },
    {
      value: 4,
      label: '专接本',
    },
    {
      value: 5,
      label: '专升本',
    },
    {
      value: 6,
      label: '高职高专',
    },
    {
      value: 7,
      label: '其他',
    },
  ]
}

module.exports = {
  AuthSetting,
  themeSetting,
  yearOptions,
  selectedOptions,
  booleanOptions,
  fullSexOptions,
  sexOptions,
  categoryOptions,
  registerDegreeOptions,
  englishLevelOptions,
  degreeOptions,
  learningWayOptions,
  intentionLevelOptions,
}
